package com.banyuan.array;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

/**
 * @author 陶继发
 * @version 1.8
 */
@SuppressWarnings("all")
public class Array_ {
    public static void main(String[] args) {
        List list = new ArrayList();
        list.add("1111");
        list.add("2222");
        list.add("111111");
        list.add("3333");
        list.add("2222");
        list.add("2222");
        Iterator iterator = list.iterator();
        while (iterator.hasNext()) {
            Object obj = iterator.next();
            if("2222".equals(obj)){
                iterator.remove();
            }
        }
        System.out.println(list);
    }
}
